Fix gtk4-demo’s gears demo on OpenGL ES
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Fri, 25 Dec 2020 00:21:08 +0000 (01:21 +0100)
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Fri, 25 Dec 2020 00:21:08 +0000 (01:21 +0100)
commit28c4adac24bf6b16cf2f2f0bf2dec79aca33d98c
treec756dedef9c8d291a12400d5e1292f8161898b44
parent7e579bb59a650e61f21e9bf13fe3ded3f6b571dc
Fix gtk4-demo’s gears demo on OpenGL ES

Here is a command to reproduce this testcase:
GDK_DEBUG=gl-gles gtk4-demo --run gears

Without this patch, Mesa throws this compile error:
0:130(13): error: no matching function for call to `mod(error, float)'; candidates are:

This is caused by `u_rotation - 90` being of type error since
`u_rotation` is a float and it’s illegal to subtract it with an integer.
gsk/resources/glsl/conic_gradient.glsl